package com.ruoyi.lxy.mapper;

import com.ruoyi.lxy.domain.TRoute;
import com.ruoyi.lxy.domain.vo.TRouteVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 路线Mapper接口
 *
 * @author ruoyi
 * @date 2023-08-24
 */
public interface TRouteMapper extends BaseMapperPlus<TRouteMapper, TRoute, TRouteVo> {
    void changeStatus(@Param("id") Long id, @Param("questionnaireId") Long questionnaireId);

    int getVotes(Long questionnaireId);

    //模糊查询出路线id
    List<Long> selectByName(@Param("name") String name);
    List<Long> selectByProjectId(@Param("projectId") Long projectId);

    List<Long> selectForAgency(@Param("agencyId") Long agencyId,@Param("projectId") Long projectId);
}
